package com.xiangban.data_platform.mapper;

import com.xiangban.data_platform.domain.dto.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Author Mr. Ma
 * @Data 2020/12/2 11:57
 */
@Repository
public interface QuenstionnaireMapper {
//    int findquenstionnaire ();


    List<Quenstions> findquenstionAnswer();

    List<Quenstionnaire> findBeChosen(@Param("user_id") int userId);

    int updateUserAndQuenstionAnswer(Map<String,Object> map);

    int saveQuenstionnaire(Quenstionnaire quenstionnaire);

    void del(Integer id);

    List selectAnswer(Answer quenstionAnswer);

    List<Answer> selectAnswerById(AnswerByAnswerId answerByAnswerId);

    int updateAnswer(Answer answer);
    int saveAnswer(Answer answer);
    int deleteAnswer(Integer id);
    Answer ByIdGetAnswer(Integer id);

}
